package com.fighYo.trace.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fighYo
 * @since 2022-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Product对象", description="")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "索引")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "产品名")
    private String productName;

    @ApiModelProperty(value = "价格")
    private String price;

    @ApiModelProperty(value = "产品种类ID")
    private Integer speciesId;

    @ApiModelProperty(value = "库存")
    private Integer quantity;

    @ApiModelProperty(value = "亩数")
    private Integer area;

    @ApiModelProperty(value = "是否上架 0--否 1--是")
    private String saleFlag;

    @ApiModelProperty(value = "审核完成 0--否 1--是")
    private String judgeFlag;

    @ApiModelProperty(value = "产地")
    private String address;

    @ApiModelProperty(value = "oss图片url, 用;隔开")
    private String img;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "经度")
    private String lon;

    @ApiModelProperty(value = "纬度")
    private String lat;


}
